<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>1</title>
</head>
<body>
<script>
    //随机产生一个[1-50]整数，判断是奇数还是偶数
    var num=Math.floor(Math.random()*50+1);
    if (num%2==0){
        console.log(num+"是偶数")
    }
    else {
        console.log(num+"是奇数")
    }
</script>
</body>
</html>
